---
sidebar_label: Alibaba Tongyi
---

import CodeBlock from "@theme/CodeBlock";

# ChatAlibabaTongyi

LangChain.js supports the Alibaba qwen family of models.

## Setup

You'll need to sign up for an Alibaba API key and set it as an environment variable named `ALIBABA_API_KEY`

## Usage

Here's an example:

import Tongyi from "@examples/models/chat/integration_alitongyi.ts";

<CodeBlock language="typescript">{Tongyi}</CodeBlock>
